/*
 * debug.h
 *
 *  Created on: Mar 22, 2011
 *      Author: Pongsathon Janyoi
 */
#ifndef ESTS_DEBUG_H
#define ESTS_DEBUG_H

#include "config.h"

#ifdef DEBUG_ENABLED

#ifdef DEBUG_ANDROID_LOGCAT

#define LOG_TAG "ESTS TTS Engine"
#define LOG_TAG_TEST "ESTS TTS Test"
#include <android/log.h>

#define ESTS_ENTER(text) debug_enter(text)
#define ESTS_SHOW(format,...) debug_show(format,__VA_ARGS__);
#define ESTS_TEST(format,...) debug_test(format,__VA_ARGS__);
#define ESTS_SHOW_TIME(text) debug_time(text);
extern void setTestFilePath(char * test);
extern void debug_enter(const char* text);
extern void debug_show(const char* format,...);
extern void debug_test(const char* format,...);
extern void debug_time(const char* text);

#else


#define ESTS_ENTER(text) debug_enter(text)
#define ESTS_SHOW(format,...) debug_show(format,__VA_ARGS__);
#define ESTS_TEST(format,...) debug_test(format,__VA_ARGS__);
#define ESTS_SHOW_TIME(text) debug_time(text);
extern void setTestFilePath(char * test);
extern void debug_enter(const char* text);
extern void debug_show(const char* format,...);
extern void debug_test(const char* format,...);
extern void debug_time(const char* text);

#endif

#endif //DEBUG_ENABLED


#endif
